#include "mainwindow.h"
#include "ui_mainwindow.h"

MainWindow::MainWindow(QWidget *parent)
    : QMainWindow(parent)
    , ui(new Ui::MainWindow)
{
    ui->setupUi(this);
}

MainWindow::~MainWindow()
{
    delete ui;
}


void MainWindow::on_pushButton_clicked()
{
    QString result = "今天你的安排是：";
    if(ui->checkBox_study->isChecked())
    {
        result+=ui->checkBox_study->text()+" ";
    }
    if(ui->checkBox_game->isChecked())
    {
        result+=ui->checkBox_game->text()+" ";
    }
    if(ui->checkBox_work->isChecked())
    {
        result+=ui->checkBox_work->text()+" ";
    }
    ui->label->setText(result);
}
